<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: stone
  Date: 2019-08-13
  Time: 20:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="../image/favicon.ico" type="image/ico"/>

    <title>用户管理</title>

    <!-- Bootstrap -->
    <link href="../css/bootstrapcss/bootstrap.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../css/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="../css/vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="../css/vendors/iCheck/skins/flat/green.css" rel="stylesheet">

    <!-- bootstrap-progressbar -->
    <link href="../css/vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
    <!-- JQVMap -->
    <link href="../css/vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
    <!-- bootstrap-daterangepicker -->
    <link href="../css/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="../css/build/css/custom.min.css" rel="stylesheet">

    <link href="../css/after/userquery.css" rel="stylesheet">
    <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
</head>

<body class="nav-md">
<div class="container body">
    <div class="main_container">
        <jsp:include page="left.jsp"/>

        <!-- top navigation -->
        <jsp:include page="top.jsp"/>
        <!-- /top navigation -->

        <!-- page content -->


        <div class="right_col right-row" role="main">

            <div class="container body">
                <div class="row clearfix" style="text-align: center">
                    <div class="col-md-12 column">
                        <div class="row clearfix">
                            <div class="col-md-1 column">
                            </div>
                            <div class="col-md-12 column">
                                <div class="col-md-12 column">
                                    <br>
                                    <div class="x_content">
                                        <form action="../user/page.do" id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">
                                            <div class="row clearfix" style="text-align: center">

                                                <div class="form-group col-md-3 column">
                                                    <label class="control-label col-md-5 col-sm-5 col-xs-12" for="login_name">登录名: </label>
                                                    <div class="col-md-7 col-sm-7 col-xs-12">
                                                        <input type="text" id="login_name" name="loginName">
                                                    </div>
                                                </div>
                                                <div class="form-group col-md-3 column">
                                                    <label for="first_name" class="control-label col-md-5 col-sm-5 col-xs-12">姓氏：</label>
                                                    <div class="col-md-7 col-sm-7 col-xs-12">
                                                        <input id="first_name" type="text" name="firstName">
                                                    </div>
                                                </div>
                                                <div class="form-group col-md-3 column">
                                                    <label for="last_name" class="control-label col-md-5 col-sm-7 col-xs-12">名字:</label>
                                                    <div class="col-md-7 col-sm-7 col-xs-12">
                                                        <input id="last_name" name="lastName" type="text">
                                                    </div>
                                                </div>
                                                <div class="form-group col-md-3 column">
                                                    <label for="email" class="control-label col-md-5 col-sm-5 col-xs-12">email：</label>
                                                    <div class="col-md-7 col-sm-7 col-xs-12">
                                                        <input id="email" name="email" type="text">
                                                    </div>
                                                </div>
                                                <br><br>
                                                <div class="form-group">
                                                    <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                                        <%--<button class="btn btn-primary" type="button">取消</button>--%>
                                                        <button class="btn btn-primary" type="reset">重置</button>
                                                        <button type="submit" class="btn btn-success">提交</button>
                                                    </div>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                                <div class="col-md-12 column">
                                    <div class="col-md-12">
                                        <table class="table">
                                            <thead>
                                            <tr class="tr_th">
                                                <th>头像</th>
                                                <th>登录名</th>
                                                <th>姓名</th>
                                                <th>email</th>
                                                <th>性别</th>
                                                <th>爱好</th>
                                                <th>出生日期</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <c:forEach var="usersList" items="${usersList}">
                                                <tr id="tr_${usersList.userId}" class="">
                                                    <td>
                                                        <div style="height: 50px;width: 50px">
                                                            <img src="../image/${usersList.header}" class=" " alt="" style="height: 100%;width: 100%">
                                                        </div>
                                                    </td>
                                                    <td>${usersList.loginName}</td>
                                                    <td>${usersList.firstName}${usersList.lastName}</td>
                                                    <td>${usersList.email}</td>
                                                    <td>${usersList.gender}</td>
                                                    <td>${usersList.hobbit}</td>
                                                    <td>${usersList.birthday}</td>
                                                    <td>
                                                        <a href="javascript:void(0)" data-toggle="tooltip" data-placement="top" title="" data-original-title="重置密码" class="btn btn-primary btn-sm updateuser" updateuser="${usersList.userId}">
                                                            <span class="glyphicon glyphicon-pencil"></span></a>
                                                        <a href="javascript:void(0)" data-toggle="tooltip" data-placement="top" title="" data-original-title="删除用户" class="btn btn-sm btn-danger deleteuser" deleteuser="${usersList.userId}">
                                                            <span class="glyphicon glyphicon-trash"></span></a>
                                                    </td>
                                                </tr>
                                            </c:forEach>
                                        </table>
                                    </div>
                                    <div class="col-md-12">
                                        <!--分页-->
                                        <span>
                                    <!-- 分页栏 -->
                                    <c:if test="${not usersPage.first}">
                                        <a href="../user/page.do?pageNo=1">第一页</a>&nbsp;&nbsp;
                                    </c:if>
                                    <c:if test="${usersPage.pageNo gt 1}">
                                        <a href="../user/page.do?pageNo=${usersPage.pageNo-1}">上一页</a>&nbsp;&nbsp;
                                    </c:if>
                                    <c:if test="${usersPage.pageNo lt usersPage.totalPage}">
                                        <a href="../user/page.do?pageNo=${usersPage.pageNo+1}">下一页</a>&nbsp;&nbsp;
                                    </c:if>
                                    <c:if test="${not usersPage.last}">
                                        <a href="../user/page.do?pageNo=${usersPage.totalPage}">最后一页</a>
                                    </c:if>
                                    <c:if test="${not empty usersPage}">
                                        &nbsp;&nbsp; 共${usersPage.totalRow}条记录&nbsp;第${usersPage.pageNo}页/共${usersPage.totalPage}页
                                    </c:if>
                                    </span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-1 column">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <!-- /page content -->

        <!-- footer content -->
        <%--<footer>--%>
        <%--<div class="pull-right">--%>
        <%--Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a>--%>
        <%--</div>--%>
        <%--<div class="clearfix"></div>--%>
        <%--</footer>--%>
        <!-- /footer content -->
    </div>
</div>

<!-- jQuery -->
<script src="../js/jquery-2.2.4.js"></script>
<!-- Bootstrap -->
<script src="../js/bootstrap.js"></script>
<!-- FastClick -->
<script src="../css/vendors/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="../css/vendors/nprogress/nprogress.js"></script>
<!-- Chart.js -->
<script src="../css/vendors/Chart.js/dist/Chart.min.js"></script>
<!-- gauge.js -->
<script src="../css/vendors/gauge.js/dist/gauge.min.js"></script>
<!-- bootstrap-progressbar -->
<script src="../css/vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
<!-- iCheck -->
<script src="../css/vendors/iCheck/icheck.min.js"></script>
<!-- Skycons -->
<script src="../css/vendors/skycons/skycons.js"></script>
<!-- Flot -->
<script src="../css/vendors/Flot/jquery.flot.js"></script>
<script src="../css/vendors/Flot/jquery.flot.pie.js"></script>
<script src="../css/vendors/Flot/jquery.flot.time.js"></script>
<script src="../css/vendors/Flot/jquery.flot.stack.js"></script>
<script src="../css/vendors/Flot/jquery.flot.resize.js"></script>
<!-- Flot plugins -->
<script src="../css/vendors/flot.orderbars/js/jquery.flot.orderBars.js"></script>
<script src="../css/vendors/flot-spline/js/jquery.flot.spline.min.js"></script>
<script src="../css/vendors/flot.curvedlines/curvedLines.js"></script>
<!-- DateJS -->
<script src="../css/vendors/DateJS/build/date.js"></script>
<!-- JQVMap -->
<script src="../css/vendors/jqvmap/dist/jquery.vmap.js"></script>
<script src="../css/vendors/jqvmap/dist/maps/jquery.vmap.world.js"></script>
<script src="../css/vendors/jqvmap/examples/js/jquery.vmap.sampledata.js"></script>
<!-- bootstrap-daterangepicker -->
<script src="../css/vendors/moment/min/moment.min.js"></script>
<script src="../css/vendors/bootstrap-daterangepicker/daterangepicker.js"></script>

<!-- Custom Theme Scripts -->
<script src="../css/build/js/custom.min.js"></script>

<!-- Mainly scripts -->
<script src="../js/framework/metisMenu/jquery.metisMenu.js"></script>
<script src="../js/framework/slimscroll/jquery.slimscroll.min.js"></script>

<!-- Custom and plugin javascript -->
<script src="../js/framework/inspinia.js"></script>
<script src="../js/framework/pace/pace.min.js"></script>

<!-- Sweet alert -->
<script src="../js/framework/sweetalert/sweetalert.min.js"></script>

<!-- 公共 -->
<script src="../js/after/commons.js"></script>

</body>
</html>

